<b>Список студентов</b>
<table width="100" cellspacing="1" cellpadding="1">
  <tr>
    <td>
    <?php echo $this->Form->create('Student', array('action' =>'showstudents')); ?>
    
    </td>
    
  </tr>
  <tr>
  <td>Специальность</td> 
  <td><?php
		echo $this->Form->input('profession_id', array('empty' => 'Выберите факультет', 'label' => ''));
	  ?>
  </td>
  </tr>
  <tr>
  <td>Курс</td> 
  <td>
     <?php
		echo $this->Form->input('course_id', array('label' => ''));
		$this->Js->get('#StudentProfessionId');
		$this->Js->event('change', $this->Js->request(array('controller'=>'students', 'action'=>'update_course'), 
		array(
				'update'=>'#StudentCourseId',
				'async' => true,
				'method' => 'Post',
				'dataExpression'=>true,
				'data'=> $this->Js->serializeForm(array('isForm' => true,'inline' => true))
		)));
	 ?>
  </td>
  </tr>
  <tr>
  <td>Группа</td> 
  <td>
    <?php
		echo $this->Form->input('studentgroup_id', array('label' => ''));
		$this->Js->get('#StudentCourseId');
		$this->Js->event('change', $this->Js->request(array('controller'=>'students', 'action'=>'update_studentgroup'), 
		array(
				'update'=>'#StudentStudentgroupId',
				'async' => true,
				'method' => 'Post',
				'dataExpression'=>true,
				'data'=> $this->Js->serializeForm(array('isForm' => true,'inline' => true))
		)));
	?>
	</td>
    </tr>
    
  
    <tr>
  
  <td>
        <?php 
        		
        		$options = array(0 => '<b>записи постранично</b><br />', 1 => '<b>простой список все записи</b><br />', 2=> '<b>файл Word</b><br />', 3 =>'<b>файл Excel</b>');
        		$atributes = array('value' => 1, 'legend' => 'Формат результата');
        		echo $this->Form->radio('format', $options , $atributes);        		
    			
        	?>
  </td>
  </tr>      
  
  
    <tr>
   
    <td><?php echo $this->Form->end('Показать'); ?> </td>
  </tr>
  
    </table>